/**
 * Copyright 2007-2008. Chongqing First Information & Network Co., Ltd. All
 * rights reserved. <a>http://www.cqfirst.com.cn</a>
 */
package com.cqcis.uip.base.framework.filters.impl;

import com.cqcis.uip.base.framework.filters.Filter;
import com.cqcis.uip.base.framework.filters.adaptor.AbstractProtocolParseFilter;

/**
 * @author huangmy
 * @date   2007-12-21
 */
public class DefaultProtocolReadFilter extends AbstractProtocolParseFilter {
    private Filter filter;
    
	@Override
	protected Object doMessageReceived(Object message) throws Exception {		
		return filter.filter(message);
	}

	public void setFilter(Filter filter) {
		this.filter = filter;
	}
}
